﻿@model IEnumerable<StudentManagement.Models.Course>

@{
    ViewBag.Title = "Course List";
    Layout = "~/Views/Shared/_AdminNestedLayout.cshtml";
}
<!-- Action link for course create view-->
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<!-- Course grid list -->
<table class="grid">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.BranchId)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ShortName)
        </th>
        @*  <th>
            @Html.DisplayNameFor(model => model.Description)
        </th>*@
        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.BranchName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.ShortName)
            </td>
            @* <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>*@
            <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.CourseId }) |
            @Html.ActionLink("Details", "Details", new { id = item.CourseId }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.CourseId })
            </td>
        </tr>
    }

</table>
<!-- /Course grid list -->